package com.rongke.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.IService;
import com.rongke.model.BuyTogetherGoods;
import com.rongke.model.Orders;

import java.util.List;
import java.util.Map;

/**
 * @BuyTogetherGoodsService
 * @拼团商品Service
 * @version : Ver 1.0
 */
public interface BuyTogetherGoodsService extends IService<BuyTogetherGoods>{

    List<BuyTogetherGoods> selectByCondition(BuyTogetherGoods buyTogetherGoods);

    BuyTogetherGoods selectViaId(Long id);

    List<BuyTogetherGoods> selectTogGoodsList(Map map);

    BuyTogetherGoods selectTogetherGoods(Map map);

    JSONObject refund(List<Orders> ordersList);
}
